namespace KMS.Core
{
    internal class SetClausesHolder
    {
        public SetClausesHolder(string setClauses, object value, int index = 0)
        {
            this.SetClauses = setClauses;
            this.Value = value;
            this.Index = index;
        }
        public string SetClauses { get; private set; }
        public object Value { get; private set; }
        public int Index { get; private set; }
        internal string Placeholder { get { return string.Format("@{0}{1}", this.SetClauses, this.Index); } }
        internal string Clauses { get { return string.Format("{0} = {1}", this.SetClauses, this.Placeholder); } }
    }
}